package com.kingyea.mobilepolice.apimanage.serverapimonitor.dao;

import com.kingyea.mobilepolice.apimanage.serverapimonitor.bean.ServerApiMonitor;
import com.kingyea.mobilepolice.apimanage.sysvo.bean.AllCondition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ServerApiMonitorMapper
 * @date Created in 2018-05-19 14:08:21
 */
@Repository
public interface ServerApiMonitorMapper {

    /**
     * 通过ID获取对象
     */
    ServerApiMonitor getById(@Param("id") Integer id);

    /**
     * 通过ID删除对象
     */
    int deleteById(@Param("id") Integer id);

    /**
     * 更新对象
     */
    int update(ServerApiMonitor obj);

    /**
     * 保存对象
     */
    int save(ServerApiMonitor obj);

    /**
     * 查询列表
     */
    List<ServerApiMonitor> list(AllCondition condition);

    List<ServerApiMonitor> searchGather(AllCondition condition);

}
